# -*- coding: utf-8 -*-
# @Time    : 2024/3/10 12:01
# @Author  : xh
# @FileName: handle_conf.py
# @Software: PyCharm
import os.path
from configparser import ConfigParser
from common.handle_path import CONF_DIR


class config(ConfigParser):
    "在创建对象直接加载配置文件中的内容"

    def __init__(self, conf_file):
        super().__init__()
        self.read(conf_file, encoding="utf-8")


conf = config(os.path.join(CONF_DIR, "config.ini"))

if __name__ == '__main__':
    pass
